<template>
  <AButton block type="primary" @click="clickHandle">
    点击新增
    <template #icon>
      <PlusCircleOutlined />
    </template>
  </AButton>
</template>
<!--功能按钮-->
<script>
import {PlusCircleOutlined} from '@ant-design/icons-vue'
export default {
  name: "OpdFuncItem",
  props: ['meta', 'model'],
  components: {PlusCircleOutlined},
  methods: {
    clickHandle(e) {
      if(this.meta.click instanceof Function) {
        this.meta.click(e);
      }
    }
  }
}
</script>

<style scoped>

</style>
